var express = require("express");
var app = express();
app.use(express.static("public"));

app.get("/",function(req,res){
	//__dirname 当前服务所在的路径
	res.sendfile(__dirname+"/index.html");
});

app.get("/pp",function(req,res){
	//__dirname 当前服务所在的路径
	// res.sendfile(__dirname+"/html/logo.html");

	var username = req.query.username;
	var password = req.query.password;
	res.send('用户名是'+username+'密码是'+password);
});

var server = app.listen(8888,function(){
	console.log("服务已启动");
})
